package com.lxw.study.structural.facade.case2;

public class Client {
    public static void main(String[] args) {
        AlarmFacade alarmFacade = new AlarmFacade();
        alarmFacade.addComponent(new Subsystem1());
        alarmFacade.addComponent(new Subsystem2());
        String alarmMessage = alarmFacade.getAlarmMessage();
        System.out.println(alarmMessage);
    }
}
